<#include "/includes/header.ftl">

<div id='productlist_brands'>
	<#include "/includes/leftbar.ftl">
</div>

<div><b>Check My Coupon Items</b></div>

<div id='productlist_contents'>
	<#if couponItemList?has_content>
		<#list couponItemList as ci>
			<li>
			<div class='product_img'><A href='<@spring.url "/viewcoupondetail.jsp?cpsid=${ci.coupon.sysId}"/>'  ><IMG src='<@spring.url "/IMAGES/PRODUCT/PRODUCT_MEDIUM_DEFAULT.JPG"/>' width="80" height="60" style="border: 1px solid rgb(0, 0, 0);" /></A></div>
			<div class='product_desc'>Coupon Item Id: ${ci.id}&nbsp;&nbsp;<A href='<@spring.url "/viewstoredetail.jsp?stosid=${ci.coupon.store.sysId}"/>'>${ci.coupon.store.name}</A>&nbsp;-&nbsp;<A href='<@spring.url "/viewcoupondetail.jsp?cpsid=${ci.coupon.sysId}"/>'   class='product_title'>${ci.coupon.name?default("No-Name")}</A>			 
			&nbsp;<br>Lottery Number: ci.23423424 ci.23492384 ci23423422 235394390 2392392
			<#assign status = ci.status?default(1002)> 
			<br>Status:
				<#if status == 1002>
					<A href='<@spring.url "/confirmcouponitem.php?cpisid=${ci.sysId}"/>'>Waiting for Your Confirm</A>
				<#else>
					<A href='<@spring.url "/viewcouponitemdetail.jsp?cpisid=${ci.sysId}"/>'>Confirmed</A>
				</#if>  
			</div>
			</li>
		</#list>								
	<#else>
		You don't have any coupon, please visit stores to find a coupon and do consume in the stores.						
	</#if>						
</div>

<#if couponItemList?has_content>
	<div id="productlist_pagefooter"><#include "/includes/pagefooter.ftl"></div>
</#if>
<#include "/includes/footer.ftl">